package com.ctvit.breadking.news.website.pojo.entity;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
@ToString
public class WebsiteEntity {

    public static final String COLLECTION_WEBSITE = "bncs_website";
    public static final String FIELD_CODE = "code";
    public static final String FIELD_NAME = "name";
    public static final String FIELD_URL = "url";

    @NotBlank(message = "编码为空")
    protected String code;
    @NotBlank(message = "名称为空")
    protected String name;
    @NotBlank(message = "地址为空")
    protected String url;

}
